#ifndef CLICKABLEWIDGET_H
#define CLICKABLEWIDGET_H

#include <QWidget>
#include <iostream>

 /* Class clickableWidget extends QWidget
  * to add the ability of the user to click on a widget
  * and for a signal to be emitted
  */
class clickableWidget : public QWidget
{
      Q_OBJECT
public:
    clickableWidget(QWidget *parent = 0);
    ~clickableWidget();

protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseDoubleClickEvent(QMouseEvent *event);
    //void mouseMoveEvent(QMouseEvent *event);

signals:
    void clicked();
    void doubleClicked();

};

#endif // CLICKABLEWIDGET_H

